package edu.guet.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import edu.guet.server.service.WatchVideoService;
import edu.guet.server.utils.ResultAPI;

@RestController
@RequestMapping("/watchVideo")
public class WatchVideoController {
    @Autowired
    WatchVideoService watchVideoService;

    @RequestMapping("/getWatchVideo")
    public ResultAPI getWatchVideo(@RequestParam("video_id") int video_id, @RequestParam("user_id") int user_id) {
        return watchVideoService.getWatchVideo(video_id, user_id);
    }
}
